package com.flismax.mysms.sendsms;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.flismax.mysms.util.MyToast;

/**
 * Broadcast listen when SMS have been delivered
 * 
 * @author DIZAII
 * 
 */
public class BroadcastDeliveredSms extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		switch (getResultCode()) {
		case Activity.RESULT_OK:
			MyToast.show(context, "Send sms successfully");
			break;
		case Activity.RESULT_CANCELED:
			MyToast.show(context, "Can't not send sms");
			break;
		default:
			break;
		}
	}
}
